﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

using Xamarin.Forms;
using Xamarin.Forms.Xaml;

namespace JWXH.XH.pages.listview.components
{
    [XamlCompilation(XamlCompilationOptions.Compile)]
    public partial class NewsView : ViewCell
    {
        public NewsView()
        {
            InitializeComponent();
        }

        public static readonly BindableProperty TitleProperty = BindableProperty.Create("Title", typeof(string), typeof(NewsView));
        public string Title
        {
            get => (string)GetValue(TitleProperty); set => SetValue(TitleProperty, value);
        }

        public static readonly BindableProperty ImgProperty = BindableProperty.Create("Img", typeof(string), typeof(NewsView));
        public ImageSource Img { get => GetValue(ImgProperty) as ImageSource; set => SetValue(ImgProperty, value); }

        // 更多 点击
        private void MenuItemMore_OnClicked(object sender, EventArgs e)
        {
               
        }

        private void MenuItemDelete_OnClicked(object sender, EventArgs e)
        {
            
        }
    }
}